﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using EntitySetBase;

namespace Models
{
    public class OrderDetail : EntitySetWithCreateAndUpdate
    {
        public int Count { get; set; }
        public string Name { get; set; }
        public decimal Price { get; set; }

        [Column("description"), MaxLength(1024)]
        public override string Description { get; set; }

        public string OrderId { get; set; }
        public virtual Order Order { get; set; }
    }
}
